﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleTaskManager.Domain.Entities
{
    /// <summary>
    /// Represents a file originating from an upload form.
    /// </summary>
    public class UploadedFile
    {
        /// <summary>
        /// The size of the file in bytes
        /// </summary>
        public int FileSize { get; set; }
        /// <summary>
        /// The original filename
        /// </summary>
        public string Filename { get; set; }
        /// <summary>
        /// The type of the file
        /// </summary>
        public string ContentType { get; set; }
        /// <summary>
        /// The binary data
        /// </summary>
        public byte[] Contents { get; set; }
    }
}
